using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Domains
{
    /// <summary>
    /// <para>Delete Domain</para>
    /// <para>Deletes a domain from a workspace.</para>
    /// <para>从工作区中删除域。</para>
    /// </summary>    
    [DisplayName("Delete Domain")]
    public class DeleteDomain : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DeleteDomain()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_workspace">
        /// <para>Input Workspace</para>
        /// <para>The geodatabase that contains the domain to be deleted.</para>
        /// <para>包含要删除的属性域的地理数据库。</para>
        /// </param>
        /// <param name="_domain_name">
        /// <para>Domain Name</para>
        /// <para>The name of the domain to be deleted.</para>
        /// <para>要删除的域的名称。</para>
        /// </param>
        public DeleteDomain(object _in_workspace, object _domain_name)
        {
            this._in_workspace = _in_workspace;
            this._domain_name = _domain_name;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Delete Domain";

        public override string CallName => "management.DeleteDomain";

        public override List<string> AcceptEnvironments => ["autoCommit", "workspace"];

        public override object[] ParameterInfo => [_in_workspace, _domain_name, _out_workspace];

        /// <summary>
        /// <para>Input Workspace</para>
        /// <para>The geodatabase that contains the domain to be deleted.</para>
        /// <para>包含要删除的属性域的地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_workspace { get; set; }


        /// <summary>
        /// <para>Domain Name</para>
        /// <para>The name of the domain to be deleted.</para>
        /// <para>要删除的域的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Domain Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _domain_name { get; set; }


        /// <summary>
        /// <para>Updated Input Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public DeleteDomain SetEnv(int? autoCommit = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, workspace: workspace);
            return this;
        }

    }

}